<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>左侧导航按钮</title>
    <style>
        body{
            margin: 0;
            padding: 0;
            background-color: #f1f1f1;
            font-family: sans-serif;
        }
        .side{
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        .side a{
            background-color: #e74c3c;
            color: white;
            font-size: 22px;
            display: block;
            width: 130px;
            padding: 12px;
            text-decoration: none;
            margin: 8px 0;
            border-radius: 8px;
            margin-left: -100px;
            transition: 0.4s all;
        }
        .side a:hover{
            margin-left: 0;
        }
    </style>
</head>
<body>
    <div class="side">
        <a href="" style="background-color: #27ae60;">Home</a>
        <a href="" style="background-color: #c0392b;">About</a>
        <a href="" style="background-color: #f0932b;">Works</a>
        <a href="" style="background-color: #2980b9;">Contact</a>
    </div>
</body>
</html>